/**
 * 验证用户是否有对应的权限
 * @param userInfo
 * @param accessId
 * @returns
 */
export const checkPermissionAuth = (userInfo: any, accessId: any) => {
  const { menuPermissions = [] } = userInfo || {};
  return menuPermissions.includes(accessId);
};
